function P=def_calc_Vars(G,P,k)
% def_calc_Vars: Default subroutine to assemble P.Vars via other fields like P.pos and P.ang
%
% SYNTAX:
%   P = def_calc_Vars(G,P,k)
%   Return the player object with fields 'Vars' stacked from 'pos' and 'ang'.
%   Game object G and player index k are passed also for convenience of using other players' info.
%   You can provide your own routine following the calling syntax here.
%   Such routine will be needed if player has a motion specified by ordinary differential equation (ODE).

%   Author: Hongbin Ma
%   Last updated: 2009-6-1 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

P.Vars=[P.pos,P.ang];
